package models

import (
	_ "github.com/go-sql-driver/mysql"
)

/**
 * mysql数据库表模板
 */

//用户表
type User struct {
	Id         int64  `gorm:"column:id;primary_key;auto_increment"`
	Name       string `gorm:"column:name"`
	CreateTime string `gorm:"column:create_time"`
	UpdateTime string `gorm:"column:update_time"`
	Status     int64  `gorm:"column:status;"`
}

//自定义表名
func (User) TableName() string {
	return "dp_user"
}
